<template>
  <div class="lf_nav user_container">
    <div class="container clearfix">
      <left-nav />
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import { mapMutations } from "vuex";
import leftNav from "./views/left-nav";
export default {
  components: {
    leftNav,
  },
  data() {
    return {};
  },
  created() {
    this.setHasNav(false);
  },
  activated() {
    this.setHasNav(false);
  },
  methods: {
    ...mapMutations({
      setHasNav: "app/SET_PAGE_HAS_NAV",
    }),
  },
};
</script>

<style lang="scss" scoped>
.user_container {
  min-width: 1200px;
  background: #f5f5f5;
  padding: 40px 0;
  margin-bottom: -40px;
  .container {
    width: 1200px;
    margin: 0 auto;
    z-index: 0;
  }
  .clearfix {
    zoom: 1;
  }
  .user_right {
    width: 950px;
    background: #fff;
  }
}
.lf_nav {
  margin-bottom: 30px;
}
</style>